package own.zch.api;

import java.util.HashMap;
import java.util.Map;

import own.zch.utils.CreateMD5Util;

import com.cndym.adapterForMobile.IFunction;
import com.cndym.utils.SpringUtils;

public class IssueTrendFuncTest {

	public static void main(String[] args) {
		System.out.println(new IssueTrendFuncTest().getString());;
	}
	public String getString(){
		Map<String,String> m=new HashMap<String, String>();
		m.put("platform", "platform");
		m.put("sid", "8001");
		m.put("machId", "352284040670808");
		m.put("func", "chat");
		m.put("msg", "{\"pageSize\":\"1\",\"lotteryId\":\"001\",\"type\":\"1\"}");
		m.put("md5", CreateMD5Util.getMd5ByMap(m));
		IFunction trendFunc = (IFunction) SpringUtils
				.getBean("trendIssueQueryFunc");
		return trendFunc.function(m).toString();
	}
}
